import requests


def get_token_util():
    resp = requests.post(url="http://ihrm-java.itheima.net/api/sys/login",
                         json={"mobile": "13800000002", "password": "123456"})
    ihrm_token = f"Bearer {resp.json().get('data')}"
    return ihrm_token


if __name__ == '__main__':
    print(get_token_util())
